#include <stdio.h>

int main()
{
	FILE *fp = fopen("./printf.c","r+");
	if(!fp){
		perror("fopen");
		return -1;

	}

	char ch = fgetc(fp);
	if(ch!=EOF){
		printf("ch = %c\n",ch);
	}
	

	ch = fgetc(fp);
	if(ch!=EOF){
		printf("ch = %c\n",ch);
	}
		

	ch = fgetc(fp);
	if(ch!=EOF){
		printf("ch = %c\n",ch);
	}



		
	fclose(fp);
	return 0;
}